﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Consulta.Web.Pages
{
    public partial class Pagos : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                Label lblTituloMaster = new Label();
                lblTituloMaster = (Label)this.Form.Parent.FindControl("lblTitulo");
                lblTituloMaster.Text = "Intranet-Consulta de Pagos a Proveedores";
                if (Page.Request.QueryString.Count > 0)
                {
                    txtFiltro.Text = Page.Request.QueryString["Nit"];
                    lblNombre.Text = "Consulta de pagos a: " + Page.Request.QueryString["Nombre"] + "(" + txtFiltro.Text + ")";
                }
                //Inicializar rango de fechas
                txtDesde.Text = DateTime.Today.AddMonths(-6).ToShortDateString();
                txtHasta.Text = DateTime.Today.ToShortDateString();
                Page.SetFocus(txtFiltro);
            }
        }
    }
}
